/*
 * Copyright (c) Jiandong.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */


//todo: just for hermes, arkjs is not need
export class JavaScriptContextHolder {
//  @GuardedBy("this")
  private mContext: number;

  public JavaScriptContextHolder(context: number) {
     this.mContext = context;
  }

//  @GuardedBy("this")
  public get(): number {
      return this.mContext;
  }
  // synchronized
  public   clear() {
      this.mContext = 0;
  }
}
